Imports System
Imports ValidationFramework


Public Class ComparePropertyRuleAttributeExample

    ' Properties

    Public Property StartDateTime() As DateTime
        Get
            Return _startDateTime
        End Get
        Set(ByVal value As DateTime)
            _startDateTime = value
        End Set
    End Property


    <ComparePropertyRule("StartDateTime", CompareOperator.GreaterThan)> _
    Public Property EndDateTime() As DateTime
        Get
            Return _endDateTime
        End Get
        Set(ByVal value As DateTime)
            _endDateTime = value
        End Set
    End Property


    ' Fields
    Private _startDateTime As DateTime
    Private _endDateTime As DateTime
End Class

